﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Workflow/MasterPage/List2.Master" Inherits="WorkFlow_WFDevDemo_WFWork1" Codebehind="WFWork1.aspx.cs" %>

<%@ Register Src="../Apply/WFLinkButtons.ascx" TagName="WFLinkButtons" TagPrefix="uc1" %>

<%@ Import Namespace="Honestysoft.Workflow.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../js/WFScript.js"></script>
<script language="javascript" type="text/javascript" src="../js/WFWinCtrlScript.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<table width="100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td>
<ul id="maintab" class="shadetabs">
<%=GetTabPage()%>

</ul>

<div id="ajaxcontentarea" class="contentstyle" >
<% if (Request["type"]+"" == "" || Request["type"]+"" == ((int)WFEnumData.WorkItemType.Draft).ToString())
   { %>
<table width="100%"  border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><div align="right" >        
    <input type=button class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:openDialog("<%=WorkflowApply.Home%>WorkFlow/WFDevDemo/WFWorkEdit.aspx?BillCode=<%=Request["ID"] %>",500,300,"新增单据");' name="Submit" value="新 增" />
      <asp:Button ID="btnDel" Text="删 除" OnClick="btnDel_Click"   runat="server" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />      
    </div></td>
  </tr>
</table><%} %>
<uc1:WFLinkButtons ID="WFLinkButtons1" runat="server" />
<table width="100%"  border="0" cellpadding="3" cellspacing="3" id="label_main">
  <tr><td>
    
    <table width="100%"  border="1" cellspacing="0" cellpadding="1" id="tGrid" class="t1">
  <thead>
    <th style="width:25px" align="center" >
        <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
    </th>
    <th align="center">紧急程度</th>
    <th align="center">单据编码</th>
    <th align="center">主题</th>
    <th style="width:60px" align="center">发送环节</th>
    <th style="width:60px" align="center">发送人</th>
    <th style="width:60px" align="center">发送时间</th>
    <th align="center">当前环节</th>
    <th style="width:60px" align="center">当前处理人</th>
    <th style="width:120px" align="center">流程操作</th>
    <th style="width:80px" align="center">操作</th>
  </thead>
  <asp:Repeater ID="Repeater2" runat="server" OnItemCommand="Repeater2_ItemCommand"
        OnItemCreated="Repeater2_ItemCreated" OnItemDataBound="Repeater2_ItemDataBound">
  <ItemTemplate>
  <tr>
    <td align="center" >
        <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"BuDataID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"BuDataID") %>" >
    </td>
    <td align="center"><%# WFPublicFun.GetEnumText(typeof(WFEnumData.UrgentLevel), ((int)((WFWorkItem)Container.DataItem).UrgentLevel).ToString()) %></td>  
    <td align="center"><%# DataBinder.Eval(Container.DataItem, "BuDataCode")%></td>  
    <td align="left"><a href='#' onclick='mOpenDlg("<%=WorkflowApply.Home %>WorkFlow/WFDevDemo/WFWorkEdit.aspx?ID=<%#DataBinder.Eval(Container.DataItem, "BuDataID")%>&BillCode=<%=Request["ID"] %>",500,300,"<%=WorkflowApply.Home%>","编辑单据信息");'><%# DataBinder.Eval(Container.DataItem, "BuDataSubject")%></a></td>    
    <td align="center"><%# DataBinder.Eval(Container.DataItem, "ReqActTemplateName")%></td>    
    <td align="center"><%# DataBinder.Eval(Container.DataItem, "ReqEmployeeName")%></td>  
    <td align="center"><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "ReqTime"))%></td>    
   <td align="center"><%# DataBinder.Eval(Container.DataItem, "ActTemplateName")%></td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem, "EmployeeName")%></td>
    <td align="center"><%# WFLinkButtons1.GetWFButtonsUrl(WorkflowApply.WFEmployee.UserID, Request["ID"] + "", DataBinder.Eval(Container.DataItem, "BuDataID") + "")%></td>
    <td align="center">
        <%# Honestysoft.Workflow.Client.WebUI.ScriptHelper.LinkButton.GetGridEditButton(WorkflowApply.Home + "WorkFlow/WFDevDemo/WFWorkEdit.aspx", "编辑单据信息", 500, 300, DataBinder.Eval(Container.DataItem, "BuDataID") + "", "", "&BillCode=" + Request["ID"], "", "", "")%>
        <%# Honestysoft.Workflow.Client.WebUI.ScriptHelper.LinkButton.GetGridDeleteButton(DataBinder.Eval(Container.DataItem, "BuDataID") + "", btnDel.ClientID)%>
    </td>
  </tr>  
  </ItemTemplate>
  </asp:Repeater>
    
</table>
    
</td></tr></table>
</div>

</td>
  </tr>
</table>
</asp:Content>